SftTree/OCX 7.0

SftTreeItems.HorizontalOffsetPix Property

Softel vdm, Inc.

Defines the current horizontal scrolling offset.

Syntax       

Get

VB.NET

OffsetPix = object.HorizontalOffsetPix  As Integer

VB

OffsetPix = object.HorizontalOffsetPix  As Long

C#.NET

int OffsetPix = object.HorizontalOffsetPix;

VC++

long OffsetPix = object->HorizontalOffsetPix;
long OffsetPix = object->GetHorizontalOffsetPix();

C

HRESULT object->get_HorizontalOffsetPix(long* OffsetPix);

Delphi

OffsetPix := object.HorizontalOffsetPix   : Integer;

Put

VB.NET

object.HorizontalOffsetPix = OffsetPix  As Integer

VB

object.HorizontalOffsetPix = OffsetPix  As Long

C#.NET

int object.HorizontalOffsetPix = OffsetPix;

VC++

long object->HorizontalOffsetPix = OffsetPix;
void object->PutHorizontalOffsetPix(long OffsetPix);

C

HRESULT object->put_HorizontalOffsetPix(long OffsetPix);

Delphi

object.HorizontalOffsetPix := OffsetPix   : Integer;

object

A SftTreeItems object.

OffsetPix

Defines the current horizontal scrolling offset in pixels.  If this value is greater than the Items.HorizontalExtent property, the value is adjusted to scroll to the rightmost position.

Comments

The HorizontalOffsetPix property defines the current horizontal scrolling offset.

The Items.HorizontalOffset and Items.HorizontalOffsetPix methods are synonyms, but may use different coordinate systems.

A tree control's displayable area can be wider than the tree control's window width.  If the displayable area is wider, the tree control can be scrolled horizontally if it has a horizontal scroll bar (see Scrollbars property).  The current offset determines the amount of horizontal scrolling.

The Items.HorizontalOffset property defines the horizontal scrolling offset of the displayable area (or the left pane of a split tree control).

The Items.HorizontalOffset2 property defines the horizontal scrolling offset of the displayable area in the right pane of a split tree control.  The Items.HorizontalOffset2 property can only be used with a split tree control.

A tree control can only be scrolled horizontally if its displayable area (see Items.HorizontalExtent property) is wider than the tree control window.

See Also  SftTreeItems Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com